import { initUrl } from '@/config/axios_config.js'

// 获取产品入库信息
export const getProductStorage = data => initUrl(`productApplications/getListProductApplicationsPage`, data, 'POST');

// 分页查询产品列表(按条件筛选和排序)
export const getProductList = data => initUrl(`products/getListByCondition`, data, 'POST');

// 产品出库数据获取
export const getProductDelivery = data => initUrl(`productApplications/getListProductApplicationsPage`, data, 'POST');

// 产品出库新增出库信息获取产品类型列表
export const getProductTypeList = data => initUrl(`products/getList`, data, 'GET')

// productApplications/exportExcelByCondition 导出产品申请列表到excel（按条件）(如需导出全部请把pageSize设个很大的值)
export const exportExcelByCondition = data => initUrl(`productApplications/exportExcelByCondition`, data, 'POST')

// /productApplications/getDetail 查询产品详情
export const getDetail = data => initUrl(`productApplications/getDetail?id=${data}`, '', 'GET')